package com.mes.biz.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.mes.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import com.mes.common.annotation.Excel;

/**
 * 配件单对象 biz_parts
 * @author swf
 * @email swf
 * @date 2023-09-12
 */
@Data
public class BizParts extends BaseEntity<BizParts>
{
    private static final long serialVersionUID = 1L;

    /** 单据编号 */
    @Excel(name = "单据编号")
    @LogField
    @FieldRemark(name = "单据编号",field = "partsNumber")
    private String partsNumber;

    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    @LogField
    @FieldRemark(name = "单据日期",field = "partsDate")
    private Date partsDate;

    /** 单据日期开始 */
    private String beginPartsDate;

    /** 单据日期结束 */
    private String endPartsDate;
	
    /** 地址 */
    @Excel(name = "地址")
    @LogField
    @FieldRemark(name = "地址",field = "address")
    private String address;

    /** 电话 */
    @Excel(name = "电话")
    @LogField
    @FieldRemark(name = "电话",field = "phone")
    private String phone;

    /** 附件 多个逗号分割 */
    @Excel(name = "附件 多个逗号分割")
    @LogField
    @FieldRemark(name = "附件 多个逗号分割",field = "fileList")
    private String fileList;

    /** 租户id */
    private String tenantId;

    /** 销售单id */
    private String orderId;

    /** 状态（0未引用 1已引用） */
    @NotBlank(message = "状态（0未引用 1已引用）不允许为空")
    @LogField
    @FieldRemark(name = "状态",field = "status")
    private String status;

    /** 部门名称 */
    private String deptIdName;
    /** 引用该测量单的销售单编号 */
    private String orderNumber;
}
